package com.cc.utils;



public class CurrentHolder {
    private  static final  ThreadLocal<Integer> CURRENT_LOCAL=new ThreadLocal<>();

    public static  final  void  setCurrentId(Integer employeeId){
        CURRENT_LOCAL.set(employeeId);
    }

    public  static  final Integer getCurrentId(){
        return CURRENT_LOCAL.get();
    }

    public static  final void remove(){
        CURRENT_LOCAL.remove();
    }

}
